import flask
from flask import render_template,request


app = flask.Flask(__name__)


name1 = 'python'
password1 = '12345678'

@app.route('/')
def index():
    return render_template('index1.html')

@app.route('/login',methods=['GET','POST'])
def login():
    name2 = request.form.get('username')
    password2 = request.form.get('password')
    if name2 == name1:
        if password1 ==password2:
            return '登陆成功！！！'
        else:
            return '什么鬼，密码都记错了！！'
    else:
        return '用户名或者密码错误。。。'
    print(name)

    return render_template('index2.html',name=name)

if __name__ == '__main__':
    app.run(debug=True,host='192.168.110.94',port=9999)



'''

user = dsbnnn
pwd = 224dsbnnn
'''